/**
 * Created by Administrator on 2015/11/24.
 */
var a = {};
function func(){
    a.name = 'zeus';
}
func();
console.log(a);//{name:'zeus'}

var b = 1;
function func1(){
    b = 2;
}
func1();
console.log(b);//2

var c;

function func2(c){
    c = {};
    c.name = 'zeus';
}
func2(c);
console.log(c);//undefined

var d = {};
function func3(d){
    d.name = 'zeus';
}
func3(d);
console.log(d);//{name:'zeus'}